<?php
require 'autoload.php';

use DesignPatterns\Creator\Prototype\Car;
use DesignPatterns\Creator\Prototype\Drive;

$carBenchi = new Car();
$carBenchi->setName('奔驰');
$drive = new Drive();
$drive->setCar($carBenchi);
var_dump($drive->show());

$driveOdi = clone $drive;
$drive->car->setName('奥迪');
var_dump($driveOdi->show());
var_dump($drive->show());